// 只是为了简化操作才封装
// localStorage.setItem(键, 值)
// localStorage.getItem(键)
// localStorage.removeItem(键)

const KEY = 'my-token-element-pc'

// 按需导出多个快捷操作localStorage的方法

// 获取
export const getToken = () => {
  return localStorage.getItem(KEY)
}

// 设置
export const setToken = (token) => {
  localStorage.setItem(KEY, token)
}

// 删除
export const delToken = () => {
  localStorage.removeItem(KEY)
}
